#!/bin/bash

docker run -d --name categraf \
  --restart=always \
  --hostname categraf \
  -e TZ=Asia/Shanghai \
  -v ~/opt/categraf/conf:/etc/categraf/conf \
  docker.1ms.run/flashcatcloud/categraf:latest

docker rm -f nightingale && \
docker run -d --name nightingale \
  -v ~/opt/nightingale/etc:/app/etc \
  -p 17000:17000 \
  docker.1ms.run/flashcatcloud/nightingale:8.1.0


docker rm -f prometheus && \
docker run -d --name prometheus \
    -p 9090:9090 \
    -v ./prometheus.yml:/etc/prometheus/prometheus.yml \
    prom/prometheus

docker rm -f prometheus && \
docker run -d --name prometheus \
  -p 9090:9090 \
  docker.1ms.run/prom/prometheus:v3.5.0